package com.wenhai.spring.boot.service;

import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
@Validated
public interface IHelloService {
    @NotNull(message = "用户不存在")
    Object sayHello(@NotNull(message = "用户ID不能为空") Integer id, @NotNull(message = "用户名不能为空") String name);
}
